<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">

    </div>
</body>
<script>
    window.onload=function () {
        var data = {msg:"hello world"};
        var appNode = document.querySelector("#app");
        appNode.innerHTML = data.msg;
    }
</script>
</html>